<%@page import="otherClasses.CheckAuth"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="smallJsps/bootstrapInclude.jsp" %>
</head>
<body>
<% if(!CheckAuth.CheckAuth(session)){ %>
	<div class="row-fluid">
		<div class="span3 offset4">
		  <form action="Auth" method="post" class="form-signin">
		  	<input type="hidden" name="type" value="login">
			<h3 class="form-signin-heading">login</h3>
			<input type="text" name="login" class="input-block-level" placeholder="Login">
			<input type="password" name="pass" class="input-block-level" placeholder="Password">
			<button class="btn btn-large btn-primary" type="submit">Sign in</button>
		  </form>
		</div>
    </div>
<% }else{ %>
	<div class="row-fluid">
		<div class="span3 offset4">
			<form action="Auth" method="post" class="form-horizontal">
			<input type="hidden" name="type" value="logout">
			<h3 class="form-signin-heading">logout?</h3>
			<button type="submit" class="btn btn-primary">yes</button>
			<button onclick='history.back()' type="button" class="btn">no</button>
			</form>
		</div>
    </div>
<%} %>
</body>
</html>